home *** CD-ROM | disk | FTP | other *** search
/ Aminet 43 / Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso / Aminet / game / role / World.lha / source / makefile.old < prev    next >
Makefile  |  2001-03-06  |  2KB  |  50 lines

  1. # Makefile for world and support programs for Unix
  2. #
  3. # The program has been tested and compiles and runs properly on the
  4. # following systems:
  5. # 1)  VAX/VMS Digital CC compiler. No particular tricks are needed.
  6. # 2)  IBM PC-AT Xenix 1.00. It seems to be necessary to use the large
  7. #     memory model, although I'm not sure why since it runs on the
  8. #     same machine under DOS in the small model.
  9. # 3)  IBM PC under Microsoft C version 4.00. It works in the default
  10. #     small memory model if you compile with the -Os switch. Note
  11. #     that on this setup you MUST link the main program World with
  12. #     binmode.obj, provided by Microsoft, for it to work right.
  13. #     Vtxtcn and vcnvrt must NOT be linked with binmode.obj.
  14. #     This compiler generates a few harmless warning messages.
  15. #     You may need to use EXEMOD to increase the stack size.
  16. # 4)  VAX/4.3bsd Unix. No particular tricks needed.
  17. #
  18. # NOTE: Edit helper.c to adjust the pathname for q1text.dat for
  19. # your particular system.
  20. #
  21.  
  22. WHEADERS = arrays.h variab.h
  23. WOBJS = demons.o helper.o motion.o parser.o verbs1.o verbs2.o world.o
  24. CFLAGS = -O
  25.  
  26. all:    world
  27.  
  28. install:     world
  29.     cp world /usr/games/world
  30.     cp q1text.dat /usr/games/lib/q1text.dat
  31.  
  32. convert:    vcnvrt vtxtcn vtext.dat
  33.     @echo "creating data files..."
  34.     ./vtxtcn
  35.     ./vcnvrt
  36.     touch convert
  37.  
  38. vtext.dat:
  39.     cat vtext.dat.aa vtext.dat.ab vtext.dat.ac >vtext.dat
  40.  
  41. vcnvrt:    vcnvrt.c
  42.     cc $(CFLAGS) -o vcnvrt vcnvrt.c
  43.  
  44. vtxtcn:    vtxtcn.c
  45.     cc $(CFLAGS) -o vtxtcn vtxtcn.c
  46.  
  47. world:    convert $(WOBJS) $(WHEADERS) 
  48.     cc -s -o world $(WOBJS)
  49.